﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Epsilon.Expr
{
    public class PidExpr : Expression, ISecPid
    {
        public string Pid { get; private set; }

        public PidExpr(string p, int l, int c) : base(l, c)
        {
            Pid = p;
        }

        public override bool Equals(object obj)
        {
            return (obj is PidExpr) && (((PidExpr)obj).Pid == this.Pid);
        }

        public override int GetHashCode()
        {
            return this.Pid.GetHashCode();
        }

        public override string ToString()
        {
            return Pid;
        }
    }
}
